var selenium = require('selenium-standalone');

selenium.start({
  // check for more recent versions of selenium here:
  // http://selenium-release.storage.googleapis.com/index.html
  version: '2.46.0',
  baseURL: 'http://npm.taobao.org/mirrors/selenium/',
  drivers: {
    chrome: {
      // check for more recent versions of chrome driver here:
      // http://chromedriver.storage.googleapis.com/index.html
      version: '2.16',
      arch: process.arch,
      baseURL: 'http://npm.taobao.org/mirrors/chromedriver/'
    },
    // ie: {
    //   // check for more recent versions of internet explorer driver here:
    //   // http://selenium-release.storage.googleapis.com/index.html
    //   version: '2.45',
    //   arch: process.arch,
    //   baseURL: 'http://selenium-release.storage.googleapis.com'
    // }
  },
  logger: function(message) {

  },
  progressCb: function(totalLength, progressLength, chunkLength) {

  }
}, function(err, child){
  console.log(err);
  if(child)child.kill();
});


